package com.woniu.command.handler;

import com.woniu.adapter.WorkingProcedureTypeAdapter;
import com.woniu.outlet.po.WorkingProcedureTypePo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class WorkingProcedureTypeCommandHandler {

    @Autowired
    private WorkingProcedureTypeAdapter workingProcedureTypeAdapter;



    public Integer addWorkingProcedureType(WorkingProcedureTypePo workingProcedureTypePo){
        workingProcedureTypeAdapter.addWorkingProcedureType(workingProcedureTypePo);
        return 1;
    }

    public Integer updateWorkingProcedureType(WorkingProcedureTypePo workingProcedureTypePo){
        workingProcedureTypeAdapter.updateWorkingProcedureType(workingProcedureTypePo);
        return 1;
    }

    public Integer deleteWorkingProcedureTypeById(Long id){
        workingProcedureTypeAdapter.deleteWorkingProcedureTypeById(id);
        return 1;
    }



}
